<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=windows-1251" />
<title>ACSystem</title>
<link href="<?echo base_url();?>css/main_view.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="carrier">
	<?
	include("application/views/blocks/login_menu.php");
	include("application/views/blocks/header.php");
	include("application/views/blocks/main_menu.php");
	?>
	<br/>
    <div id="content">
	<?
		echo form_open('user/profile');
	?>
	<div id="login_fields">
		<?
		if($message != '')
		{
			echo '<label class="error-message">'.$message."</label></br></br>";
		}
		?>
		<label>Name:</label></br>
		<input type="text" name="name" id="name" value="<?echo $name;?>"/> </br>
		<label>Surname:</label></br>
		<input type="text" name="surname" id="surname" value="<?echo $surname;?>"/> </br>
		<label>Telephone Number:</label></br>
		<input type="text" name="tel_number" id="tel_number" value="<?echo $tel_number;?>"/> </br>
		<label>E-mail:</label></br>
		<input type="text" name="email" id="email" value="<?echo $email;?>"/> </br>
		<label>New Password:</label></br>
		<input type="password" name="new_password" id="new_password" /> </br>
		<label>Confirm Password:</label></br>
		<input type="password" name="password_confirm" id="password_confirm" /> </br>
		<input type="submit" name="submit" id="submit" value="Update"/>
	  </br>
	  </br>
	  <?
		echo '<a href="'.base_url().'index.php/user/delete"';
		echo 'onclick="return confirm('."'Do you really want to delete your profile?'".');">Delete Profile</a>';
	  ?>
	  </br>
	  </br>
	</div>
	<?
		echo form_close();
	?>
    </div>
    <?
	include("blocks/footer.php");
	?>
  </div>
</body>
</html>